Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.7
|
Leadtools.Caching Assembly > Leadtools.Caching Namespace > ObjectCache Class > Set Method : Set<T>(String,T,DateTime,String) Method |
public abstract void Set<T>( string key, T value, DateTime absoluteExpiration, string regionName )
'Declaration
Public Overloads MustOverride Sub Set(Of T)( _ ByVal key As String, _ ByVal value As T, _ ByVal absoluteExpiration As Date, _ ByVal regionName As String _ )
'Usage
Dim instance As ObjectCache Dim key As String Dim value As T Dim absoluteExpiration As Date Dim regionName As String instance.Set(Of T)(key, value, absoluteExpiration, regionName)
public abstract<T> void set(String key, T value, Class<?> classOfT, Date absoluteExpiration, String regionName)
public: abstract void Setgeneric<typename T> ( String^ key, T^ value, DateTime absoluteExpiration, String^ regionName )
If the item is already in the cache, then it will be replaced with the new item and its policy updated.